// ================================START====================================
// Template generated from		FRAMEWORKIVY CODE GENERATOR
// Generator Version:			<1.0.0.0>
// Template Creation Time:		<Sunday, 3 July, 2016   1:56:48 AM>
// Template Modification Time:	<Sunday, 3 July, 2016   2:02:27 AM>
// Code Generation Time:		<Wednesday, 6 July, 2016   1:35:18 PM>
// Workstation ID:				<PRAVESH>
// Current system User ID:		<pravesh>
// Entity/Table Name:			<ProjectMemberMaster>
// ModuleName:			        <UserManagement>
// Description:					<CSharp Class For Entity Dao Unit Test>
// Template File:				<IvyGodeGenDefaultTemplate V1.1.xml>

// Please modify the generated code as per requirement.
// This code generator is just to speed up the stereo type codes
// Complex logic needs to be modified manually.

// This block of comments will not be included in
// the definition of the procedure.
// =========================================================================

using System;

//This Class specific System namespaces
using Microsoft.VisualStudio.TestTools.UnitTesting;

//This Class Specific IvyFramework namespaces
using Ivy.Common.Framework.Base;
using Ivy.Common.Framework.DataAccess;
using Ivy.Common.Framework.GeneralUtility;

using Ivy.UserManagement.Entity;
using Ivy.UserManagement.DataAccess;

namespace Ivy.UserManagement.UnitTest
{
    [TestClass]
    public class ProjectMemberMasterDaoUnitTest
    {
        [TestMethod]
        public void ProjectMemberMasterInsertTestMethod()
        {
            ProjectMemberMaster _tempProjectMemberMaster = new ProjectMemberMaster();
            ProjectMemberMasterDao _ProjectMemberMasterDao = new ProjectMemberMasterDao();

            //Auto Generated attribute should not be supplied from outside.
            //_tempProjectMemberMaster.ProjectMemberKey = ???; This is Auto Generated attribute.

            _tempProjectMemberMaster.ProjectMemberUserKey = 1; //Not Unique Key
            _tempProjectMemberMaster.ProjectMemberFirstName = "Ram pravesh" ;
            _tempProjectMemberMaster.ProjectMemberLastName = "Kumar" ;
            _tempProjectMemberMaster.ProjectMemberPrimaryEmailID = "rampraveshkumar338@gmail.com" + StringUtility.GenerateRandomString(6); //Unique Key
            _tempProjectMemberMaster.ProjectMemberCodePlexID = "rampraveshkr" ;
            _tempProjectMemberMaster.ProjectMemberSkypeID = "pravesh.kumar49" ;
            _tempProjectMemberMaster.ProjectMemberMicrosoftID = "rampraveshkr@hotmail.com" ;
            _tempProjectMemberMaster.ProjectMemberGoogleID = "ram.praveshkumar2009@gmail.com" ;
            _tempProjectMemberMaster.ProjectMemberTimeZoneReference = "ST" ;
            _tempProjectMemberMaster.ProjectMemberTimeZoneName = "IST" ;
            _tempProjectMemberMaster.ProjectMemberTimeZoneAbbreviation = "+5:30" ;
            _tempProjectMemberMaster.ProjectMemberCountryName = "India" ;
            _tempProjectMemberMaster.ProjectMemberCityName = "Bangalore" ;
            _tempProjectMemberMaster.ProjectMemberDateOfJoining = DateTime.Now; //Not Unique Key
            //_tempProjectMemberMaster.ProjectMemberIsMemberOfFacebook = ???; This is attribute data type different and should be treated manually.

            _tempProjectMemberMaster.Sys_CreatedByID = "1";
            _tempProjectMemberMaster.Sys_DeleteType = DeleteType.SoftDeleteOnly;
            _tempProjectMemberMaster.Sys_IsDeleted = false;
            _tempProjectMemberMaster.Sys_OrganizationID = -1;

            Assert.IsTrue(_ProjectMemberMasterDao.Insert(_tempProjectMemberMaster));
        }

        //[TestMethod]
        //public void ProjectMemberMasterUpdateTestMethod()
        //{
        //    ProjectMemberMaster _tempProjectMemberMaster = new ProjectMemberMaster();
        //    ProjectMemberMasterDao _ProjectMemberMasterDao = new ProjectMemberMasterDao();

        //    //Please edit and provide a valid value for GetByPrimaryKey() parameter
        //    _tempProjectMemberMaster = _ProjectMemberMasterDao.GetByPrimaryKey(int_ProjectMemberKey); 

        //    _tempProjectMemberMaster.ProjectMemberUserKey = 9999; //Not Unique Key
        //    _tempProjectMemberMaster.ProjectMemberFirstName = "TEST ProjectMemberFirstName Not Unique" ;
        //    _tempProjectMemberMaster.ProjectMemberLastName = "TEST ProjectMemberLastName Not Unique" ;
        //    _tempProjectMemberMaster.ProjectMemberPrimaryEmailID = "TEST ProjectMemberPrimaryEmailID Unique_" + StringUtility.GenerateRandomString(6); //Unique Key
        //    _tempProjectMemberMaster.ProjectMemberCodePlexID = "TEST ProjectMemberCodePlexID Not Unique" ;
        //    _tempProjectMemberMaster.ProjectMemberSkypeID = "TEST ProjectMemberSkypeID Not Unique" ;
        //    _tempProjectMemberMaster.ProjectMemberMicrosoftID = "TEST ProjectMemberMicrosoftID Not Unique" ;
        //    _tempProjectMemberMaster.ProjectMemberGoogleID = "TEST ProjectMemberGoogleID Not Unique" ;
        //    _tempProjectMemberMaster.ProjectMemberTimeZoneReference = "TEST ProjectMemberTimeZoneReference Not Unique" ;
        //    _tempProjectMemberMaster.ProjectMemberTimeZoneName = "TEST ProjectMemberTimeZoneName Not Unique" ;
        //    _tempProjectMemberMaster.ProjectMemberTimeZoneAbbreviation = "TEST ProjectMemberTimeZoneAbbreviation Not Unique" ;
        //    _tempProjectMemberMaster.ProjectMemberCountryName = "TEST ProjectMemberCountryName Not Unique" ;
        //    _tempProjectMemberMaster.ProjectMemberCityName = "TEST ProjectMemberCityName Not Unique" ;
        //    _tempProjectMemberMaster.ProjectMemberDateOfJoining = DateTime.Now; //Not Unique Key
        //    //_tempProjectMemberMaster.ProjectMemberIsMemberOfFacebook = ???; This is attribute data type different and should be treated manually.

        //    _tempProjectMemberMaster.Sys_ModifiedByID = "1";

        //    Assert.IsTrue(_ProjectMemberMasterDao.Update(_tempProjectMemberMaster));
        //}

    }
}


